<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.List , tournoi.modele.Equipe"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html class="no-js">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Equipe</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width">

        <link rel="stylesheet" href="css/bootstrap.min.css">
        <style>
            body {
                padding-top: 50px;
                padding-bottom: 20px;
            }
        </style>
        <link rel="stylesheet" href="css/bootstrap-theme.min.css">
        <link rel="stylesheet" href="css/main.css">

        <script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
    </head>
    <body>
    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="index">Gestion de Tournoi</a>
        </div>
        <div class="navbar-collapse collapse">
          <ul class="nav navbar-nav">
            <li><a href="admin">Admin menu</a></li>
            <li><a href="admin?action=menuTournoi">Gérer tournois</a></li>
            <li class="active"><a href="admin?action=menuEquipe">Gérer equipes</a></li>
            <li><a href="admin?action=menuArbitre">Gérer arbitres</a></li>
          </ul>
          
          <div class="nav navbar-nav navbar-right navbar-form">
			<a href="admin?action=deconnexion" class="btn btn-danger">
				Déconnexion <span class="glyphicon glyphicon-log-out"></span>
          	</a>
          </div>
        </div><!--/.navbar-collapse -->
      </div>
    </div>
    <!-- ******************** -->
    <!-- ******************** -->
    <!-- CODE INTERESSANT ICI -->
    <!-- ******************** -->
    <!-- ******************** -->
	<div class="container">
		<% Equipe e = (Equipe) request.getAttribute("equipe"); 
			List<String> joueurs = e.getJoueurs(); %>
		<h3>Composition de l'équipe : <%=e.getNomEquipe() %></h3>
		<hr>
		<table class="table table-striped">
		<tr>
			<th>Nom des joueurs</th>
		</tr>
		<% for(String joueur : joueurs) { %>
		<tr>
		    <td><%=joueur %></td>
	  	</tr>
		<% } %>
		</table>
		<hr>
		<a href="admin?action=menuEquipe" class="btn btn-default" role="button">
			<span class="glyphicon glyphicon-chevron-left"></span> Retour
		</a>
		<!-- ************************ -->
		<!-- ************************ -->
		<!-- FIN CODE INTERESSANT ICI -->
		<!-- ************************ -->
		<!-- ************************ -->		

      <hr>
      <footer>
        	<p class="text-muted credit">&copy; Benoît Boyer, Antoine Leguy & Pierre-Antoine Milot 2013</p>
      </footer>
    </div> <!-- /container -->        
    	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.1.min.js"><\/script>')</script>

        <script src="js/vendor/bootstrap.min.js"></script>

        <script src="js/main.js"></script>
    </body>
</html>
